/*
 * @Author: c.k
 * @文件说明: 所有路由处理
 */
import test from './test';
let all = [...test];

let routes = all.map(val => {
  val.name = val.path;
  val.path = '/' + val.path;
  val.component = resolve => {
    // 按需加载
    require(['@/views/' + val.src + '.vue'], resolve);
  };
  return val;
});

export default routes;
